package com.techstar.api.pojo.hinge_situation;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.joda.time.DateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.common.jackson.DateTimeDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


@Getter
@Setter
@Entity
@ToString
@Table(name = "hinge_situation_event")
@org.hibernate.annotations.Table(appliesTo = "hinge_situation_event",
	comment="hinge-3-各枢纽实时突发事件")
public class HingeSituationEvent {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	@Column(columnDefinition="varchar(100) COMMENT '枢纽标识'")
	private String hubId;
	@Column(columnDefinition="varchar(100) COMMENT '枢纽名称'")
	private String hubName;
	@Column(columnDefinition="varchar(100) COMMENT '公路枢纽标识'")
	private String highwayId;
	@Column(columnDefinition="varchar(100) COMMENT '公路枢纽名称'")
	private String highwayName;
	@Column(columnDefinition="varchar(100) COMMENT '铁路枢纽标识'")
	private String railwayId;
	@Column(columnDefinition="varchar(100) COMMENT '铁路枢纽名称'")
	private String railwayName;
	@Column(columnDefinition="varchar(100) COMMENT '机场枢纽标识'")
	private String airportId;
	@Column(columnDefinition="varchar(100) COMMENT '机场枢纽名称'")
	private String airportName;
	@Column(columnDefinition="varchar(100) COMMENT '水运枢纽标识'")
	private String waterwayId;
	@Column(columnDefinition="varchar(100) COMMENT '水运枢纽名称'")
	private String waterwayName;
	@Column(columnDefinition="varchar(100) COMMENT '上报时间'")
	private String uploadTime;
	@Column(columnDefinition="varchar(100) COMMENT '事件状态'")
	private String eventStatus;
	@Column(columnDefinition="varchar(100) COMMENT '事件标识'")
	private String eventId;
	@Column(columnDefinition="varchar(100) COMMENT '来源类别'")
	private String sourceType;
	@Column(columnDefinition="varchar(100) COMMENT '一级区域'")
	private String area1;
	@Column(columnDefinition="varchar(100) COMMENT '二级区域'")
	private String area2;
	@Column(columnDefinition="varchar(100) COMMENT '事件路名'")
	private String eventRoad;
	@Column(columnDefinition="varchar(100) COMMENT '事件类型'")
	private String eventType;
	@Column(columnDefinition="varchar(100) COMMENT '事件点经度'")
	private String eventLocLon;
	@Column(columnDefinition="varchar(100) COMMENT '事件点纬度'")
	private String eventLocLat;
	@Column(columnDefinition="varchar(100) COMMENT '案件编号'")
	private String caseCode;
	@Column(columnDefinition="varchar(100) COMMENT '事件描述'")
	private String eventDesc;
	@Column(columnDefinition="varchar(100) COMMENT '发生地点'")
	private String eventLoc;
	@Column(columnDefinition="varchar(100) COMMENT '上报类型'")
	private String reportType;
	@Column(columnDefinition="varchar(100) COMMENT '申报方式'")
	private String alarmDesc;
	@Column(columnDefinition="varchar(100) COMMENT '进入环节时间'")
	private String nextSectionTime;
	@Column(columnDefinition="varchar(100) COMMENT '办结类型'")
	private String conludeType;
	@Column(columnDefinition="varchar(100) COMMENT '办结时间'")
	private String concludeTime;
	@Column(columnDefinition="varchar(100) COMMENT '办结方式'")
	private String concludeStyle;
	@Column(columnDefinition="varchar(100) COMMENT '办结说明'")
	private String concludeDesc;
	@Column(columnDefinition="datetime(0) COMMENT '更新时间'")
	@JsonDeserialize(using = DateTimeDeserializer.class)
	private DateTime updateTime;
}
